CC = gcc
LIBS = -lpthread

OBJ = mutex.o
TARGET=mutex

.PHONY:all clean 

all:$(TARGET)

mutex:mutex.o
	$(CC) -o $@ $< $(LIBS)

mutex.o:mutex.c
	$(CC) -c $< -o $@

clean:
	rm -fv $(OBJ) $(TARGET)
